<template>
    <div class="cate-search">
        <Search />
        <div class="main-box">
            <div class="left-box">
                <div class="tit">图书分类目录</div>
                <div class="tree-box">
                    <a-tree show-line :treeData="treeData" :defaultExpandAll="true"></a-tree>
                </div>
            </div>
            <div class="right-content">
                <resultList />
            </div>
        </div>
        <div class="main-box">
            <a-pagination show-quick-jumper :default-current="2" :total="500" @change="onChange" />
        </div>
    </div>
</template>

<script>
    import Search from '../../components/layout/search'
    import resultList from '../../components/resultList'
    export default {
        components:{
            Search,
            resultList
        },
        data(){
            return{
                treeData:[
                    {
                        key:0,
                        title:'总目录',
                        children:[
                            {
                                key:1,
                                title:'目录1',
                            },
                            {
                                key:2,
                                title:'目录2',
                            }
                        ]
                    }
                ]
            }
        },
        methods:{
            onChange(){

            }
        }
    }
</script>



